<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }
        html,
        body {
            height: 100%;
            width: 100%;
        }
        .box {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            border: 1px solid red;
        }
        .scroll {
            display: flex;
            width: 1180px;
            height: 360px;
            overflow: hidden;
        }
        .scroll img {
            width: 180px;
            height: 90px;
        }
        .ad1 {
            display: grid;
            grid-template-columns: repeat(6,180px);
            grid-template-rows: repeat(4,90px);
            gap: 5px;
            animation: move 4s infinite linear;
            /* transition: all 20s; */
        }
        @keyframes move {
            to {
                transform: translateX(-1105px);
            }
        }
        /* 大盒子里面的放两组盒子一共是大盒子宽度 */

    </style>
</head>
<body>
    <div class="box">
        <div class="scroll">
            <div class="ad1">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
            </div>
            <div class="ad1">
                <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
                    <img src="./img/ad1.jpg" alt="">
                    <img src="./img/ad2.jpg" alt="">
                    <img src="./img/ad3.jpg" alt="">
                    <img src="./img/ad4.jpg" alt="">
                    <img src="./img/ad5.jpg" alt="">
                    <img src="./img/ad6.jpg" alt="">
            </div>
        </div>
    </div>
</body>
</html>